@charset "utf-8";
// 引入模板颜色
@import "./mbColor.scss";
body {
    .onck {
        position: absolute;
        width: 100%;
        height: 100%;
        display: none;
        background-color: rgba(0, 0, 0, .2);
        &>div {
            position: absolute;
            width: 700px;
            height: 400px;
            background-color: white;
            top: 300px;
            left: 620px;
            z-index: 1000;
            border-radius: 5px;
            &>div:nth-child(1) {
                margin: 0 auto;
                width: 600px;
                border-bottom: 1px solid rgb(182, 177, 177);
                h2 {
                    display: inline-block;
                    padding: 25px 0;
                    margin: 0 auto;
                    font-size: 20px;
                    font-weight: 300;
                }
                .fis {
                    display: inline-block;
                    margin-left: 290px;
                    color: grey;
                }
                .fis~span {
                    cursor: pointer;
                    color: grey
                }
                .fis~span:hover {
                    color: red
                }
                ul {
                    list-style: none;
                    li {
                        float: left;
                    }
                }
            }
            &>div:nth-child(2) {
                margin: 0 auto;
                width: 600px;
                height: 300px;
                ul {
                    list-style: none;
                    margin: 0;
                    padding: 0;
                    li {
                        width: 300px;
                        float: left;
                        margin: 15px 0;
                        a {
                            margin-left: 20px;
                            text-decoration: none;
                            color: grey;
                        }
                        a:hover {
                            color: red;
                        }
                    }
                }
            }
            &>div:nth-child(3) {
                position: absolute;
                width: 20px;
                height: 20px;
                top: -10px;
                right: 0;
                cursor: pointer;
            }
        }
    }
    // 清除某些标签自带样式
    margin: 0;
    padding: 0;
    header {
        // header标签里的大div，宽度100%，高度40px，背景颜色
        div {
            height: 40px;
            background-color: $headerbgcolor;
            // 实际内容div,宽度1190px,高度父级100%,水平居中,字体颜色
            div {
                font-size: 14px;
                height: 100%;
                margin: 0 auto;
                width: 1190px;
                color: $headerfontcolor;
                // div中ul清除默认样式
                ul {
                    margin: 0;
                    padding: 0;
                    list-style: none;
                }
                // div中的左边的div 宽度800px 鼠标变成小手
                .h_left {
                    width: 800px;
                    float: left;
                    ul li {
                        cursor: pointer;
                        position: relative;
                        line-height: 40px;
                        float: left;
                        margin: 0 25px;
                        a {
                            color: $headerfontcolor;
                            text-decoration: none;
                        }
                        &:hover a {
                            color: $headerfonthovercolor;
                        }
                        &:after {
                            content: '';
                            width: 0;
                            height: 3px;
                            background: $headerfontcolor;
                            position: absolute;
                            top: 93%;
                            left: 50%;
                            transition: all .3s;
                        }
                        &:nth-child(2):hover:after,
                        &:nth-child(3):hover:after,
                        &:nth-child(4):hover:after,
                        &:nth-child(5):hover:after,
                        &:nth-child(6):hover:after,
                        &:nth-child(7):hover:after {
                            left: 0%;
                            width: 100%;
                        }
                    }
                }
                // div中的右边的div 宽度120px 向右浮动
                .h_right {
                    width: 120px;
                    float: right;
                    // a标签字体颜色，去除下划线，行高40px
                    a {
                        color: $headerfontcolor;
                        text-decoration: none;
                        line-height: 40px;
                        padding: 0 10px;
                        //鼠标悬停字体变色
                        &:hover {
                            cursor: pointer;
                            color: $headerfonthovercolor;
                        }
                    }
                }
            }
        }
    }
    footer {
        .f_up {
            height: 190px;
            background-color: $footerbgcolor1;
            background-position: center;
            position: relative;
            &>div {
                margin: 0 auto;
                width: 1190px;
                height: 100%;
                & div:nth-child(1) {
                    width: 200px;
                    height: 100%;
                    position: absolute;
                    top: 21px;
                }
                & div:nth-child(2) {
                    margin-left: 300px;
                    width: 990px;
                    height: 100%;
                    img {
                        height: 150px;
                        margin-top: 15px;
                    }
                }
            }
        }
        .f_down {
            height: 720px;
            background-color: $footerbgcolor2;
            ul {
                list-style: none;
                margin: 0;
                padding: 0;
            }
            &>div {
                &>div:nth-child(2) {
                    &>div:nth-child(2) {
                        border-bottom: 0;
                        &>p {
                            img {
                                margin-bottom: -4px;
                            }
                            margin: 5px 0;
                            padding: 0;
                            font-weight: 300;
                            &>span:nth-child(1) {
                                display: inline-block;
                                width: 300px;
                            }
                        }
                    }
                    &>div:nth-child(1) {
                        & div:nth-child(1) {
                            float: left;
                            width: 650px;
                            border-right: 1px solid #595b5f;
                        }
                        & div:nth-child(2) {
                            float: right;
                            width: 450px;
                            img {
                                margin-left: 20px;
                                margin-top: 15px;
                            }
                            &>div:nth-child(1) {
                                width: 250px;
                                float: left;
                                border-right: 0;
                            }
                            &>div:nth-child(2) {
                                width: 200px;
                                float: left;
                            }
                        }
                        margin-top: 10px;
                        width: 1190px;
                        border-bottom: 0;
                        div ul li a {
                            text-decoration: none;
                            color: $footerfontcolor1;
                            &:hover {
                                color: #fff;
                            }
                        }
                        div ul li {
                            margin-right: 80px;
                            float: left;
                            p {
                                font-weight: 500;
                                margin: 5px 0;
                                font-size: 14px;
                                color: $footerfontcolor2;
                                &:hover {
                                    color: white;
                                    cursor: pointer;
                                }
                            }
                        }
                        color: $footerfontcolor1;
                    }
                }
                width: 1190px;
                height: 100%;
                margin: 0 auto;
                &>div>div {
                    border-bottom: 1px solid #595b5f;
                    padding-top: 20px;
                    padding-bottom: 20px;
                    ul {
                        padding-top: 5px;
                    }
                    &>ul li {
                        float: left;
                        margin-right: 10px;
                        a {
                            text-decoration: none;
                            color: $footerfontcolor2;
                        }
                    }
                    &>ul li a:hover {
                        color: $footerhoverfontcolor;
                    }
                    &::after {
                        content: '';
                        display: block;
                        clear: both;
                    }
                }
                p {
                    text-align: left !important;
                    margin: 0;
                    font-weight: 600;
                    color: $footerfontcolor1;
                }
            }
        }
    }
}